home *** CD-ROM | disk | FTP | other *** search
/ Spiceworld The Movie - Interactive CD-ROM / Spiceworld The Movie: Interactive CD-ROM.iso / mac / ELEMENTS / spiceone.dir / 00001_Script_1 next >
Text File  |  1997-12-04  |  2KB  |  55 lines

  1. -- MAIN MOVIE SCRIPTS
  2. -- all the following scripts are © Empire design 1997 all rights reserved
  3.  
  4. on startMovie
  5.   global VIDVOLUME
  6.   put 250 into VIDVOLUME
  7.   set the soundLevel to 6
  8. end
  9.  
  10. on stopMovie
  11.   repeat with x = 1 to 120
  12.     set the visible of sprite x to true
  13.     updateStage
  14.   end repeat
  15.   clearGlobals
  16. end 
  17.  
  18. on doButton
  19.   put the memberNum of sprite(the clickOn) into outBtnNo
  20.   put outBtnNo + 1 into inBtnNo 
  21.   repeat while the mouseDown
  22.     if rollover(the clickOn) then set the memberNum of sprite (the clickOn) to inBtnNo
  23.     else set the memberNum of sprite (the clickOn) to outBtnNo
  24.     upDateStage
  25.   end repeat
  26.   put rollover(the clickOn) into btnState 
  27.   set the memberNum of sprite (the clickOn) to outBtnNo
  28.   upDateStage
  29.   return btnState
  30. end
  31.  
  32. on adjustVideoVol
  33.   global VIDVOLUME -- ï needs setting up and carrying around
  34.   repeat while the mouseDown
  35.     put max(185,(min(290,the mouseV))) into theVLoc
  36.     set the locV of sprite (the clickOn) to theVLoc
  37.     put ((290 - theVLoc) * 256)/105 into VIDVOLUME
  38.     set the volume of sprite 6 to VIDVOLUME
  39.     updateStage
  40.   end repeat
  41. end
  42.  
  43. on initialiseFrame
  44.   global LOOPFRAME,STANDARDCURSOR
  45.   put the frameLabel into LOOPFRAME
  46.   repeat with spriteNo = 1 to 120
  47.     set the visible of sprite spriteNo to true
  48.   end repeat
  49.   set the visible of sprite 52 to false -- ?
  50.   set the visible of sprite 53 to false -- !
  51.   set the visible of sprite 71 to false --ïïdan
  52.   set the visible of sprite 72 to false --ïïdan
  53.   updateStage
  54.   cursor STANDARDCURSOR
  55. end